import Vue from 'vue';
import config from './config';
import iView from 'iview';
import {router} from './router/index';
import App from './app.vue';
import 'iview/dist/styles/iview.css';
import i18n from './locale';
import store from './store';
import './assets/icons/iconfont.css';


Vue.use(iView, {
    i18n: (key, value) => i18n.t(key, value)
});

/**
 * @description 全局注册应用配置
 */
Vue.prototype.$config = config;

/**
 * @description 全局注册验证按钮方法
 * @param code
 */
Vue.prototype.$checkButton = function(codes){
    console.log(codes);
};

new Vue({
    el: '#app',
    router: router,
    i18n,
    store: store,
    render: h => h(App)
});